package chap3;

/**
 * @author banana
 */
public class PhoneDemo {
    public static void main(String[] args) {
        Phone p2=new Phone();
        p2.setName("apple");
        String name=p2.getName();
        System.out.println(name);
        p2.setColor("white");
        String color=p2.getColor();
        System.out.println("apple的颜色为："+p2.getColor());
        p2.setPrice(5888);
        int price=p2.getPrice();
        System.out.println("apple的价格为:"+p2.getPrice());
        p2.call();
        p2.sendMessage();
        p2.playGame();
    }
}
